<%@page import="com.swlz.entity.Role"%>
<%@page import="com.swlz.entity.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>查看商品</title>
    <base href="${pageContext.request.contextPath }/"/>
		 <link rel="stylesheet" type="text/css" href="assets/css/admin.css" />
    <script src="assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/js/popper.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/js/sys.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		 <section>
      
		
		      <div class="card container-md">
        <div class="card-body">
          <form name="regForm" action="user-add.let" method="POST">
          
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>商品名</label>
              <div class="col-sm-9">
                <input required="required" readonly="readonly"  name="productName" type="text" 
                 class="form-control-plaintext" value="${product.productName }">
              </div>
              
            </div>
             <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>商品编号</label>
              <div class="col-sm-9">
                <input required="required" readonly="readonly"name="productId" type="text"
                   class="form-control-plaintext" value="${product.productId }">
              </div>
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>商品类型</label>
              <div class="col-sm-9">
              <input required="account_number" readonly="readonly" name="mallTypeName" type="text" class="form-control-plaintext" value="${productType.mallTypeName}">
                 
              </div>
              
            </div>
            

             <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>市场价</label>
              <div class="col-sm-9">
              <input required="required" readonly="readonly"name="productPrice1" type="text"
                   class="form-control-plaintext" value="${product.productPrice1 }">
             
              </div>
              
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>折扣价</label>
              <div class="col-sm-9">
              <input required="required" readonly="readonly"name="productPrice2" type="text"
                   class="form-control-plaintext" value="${product.productPrice2 }">
             
              </div>
              
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>产品颜色</label>
              <div class="col-sm-9">
              <input required="required" readonly="readonly"name="productColors" type="text"
                   class="form-control-plaintext" value="${product.productColors }">
             
              </div>
              
            </div>
            

            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">上架时间</label>
              <div class="col-sm-9">
               <input readonly="readonly" type="text" name="productTime"  class="form-control-plaintext" style="width:auto;" value="${t.formatDate(product.productTime)}"/>
              </div>
            </div>
            
           <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">产品图片</label>
              <div class="col-sm-9">
              <img width="150" height="150" alt="图片加载失败" src="${product.productImgs}">
                 </div>
            </div>
            
            <div class="form-group row">
              <div class="col-sm-9 offset-sm-3">
                <button class="btn btn-primary" type="button" onclick="history.go(-1);">返回 </button>
              </div>
            </div>


            
         </form>
        </div>
      </div>
    </section>

	</body>

</html>